package com.logwire.enmus;import lombok.AllArgsConstructor;import lombok.Getter;import java.util.Objects;/** * @author yhou * @ProjectName server * @description * @date 2022/11/25 10:28 AM */@AllArgsConstructor@Getterpublic enum PageType {	unknown(0, "未知"),	FROM(1, "表单"),	TABLE(2, "列表"),	;	private final Integer type;	private final String name;	public static PageType getInstance(Integer type) {		for (PageType value : PageType.values()) {			if (Objects.equals(value.type, type)) {				return value;			}		}		return unknown;	}}